DocumentReplace(IContentElement, IContentElement) Method
Replaces the specified content element, for example a span, a paragraph or a
table, with another content element. The properties of the replaced element are
preserved if the new element has no own properties.
Namespace: Independentsoft.Office.OdfAssembly: Independentsoft.Calc (in Independentsoft.Calc.dll) Version: 3.0.520.1+c6c593d5629a051e0af021b238c5d69d764f9686
public bool Replace(
IContentElement oldElement,
IContentElement newElement
)
Public Function Replace (
oldElement As IContentElement,
newElement As IContentElement
) As Boolean
- oldElement IContentElement
- The content element to replace.
- newElement IContentElement
- The content element that replaces oldElement.
Booleantrue if the content element was replaced.